import mongoose from 'mongoose'

export const connectDb = async () => {
  await mongoose.connect(process.env.MONGO_URI || 'mongodb://127.0.0.1:27017', {
    dbName: 'blogSystem',
    user: 'mongoadmin',
    pass: 'admin123'
  })
}
